package org.gruposp2p.proyectokarma.gwt.client.json;

public class JSONConstants {
	
	//CometdMetaMessage
	public static final String CHANNEL = "channel";
	public static final String CLIENT_ID = "clientId";
	public static final String VERSION = "version";
	public static final String SUCCESSFUL = "successful";
	public static final String MINIMUM_VERSION = "minimumVersion";
	public static final String ID = "id";
	public static final String SUPPORTED_CONNECTION_TYPES = "supportedConnectionTypes";
	public static final String REESTABLISH = "reestablish";
	public static final String ACTION = "action";
	public static final String SUBSCRIPTION = "subscription";
	
	//CometdMessage
    public static final String MESSAGE_GROUP     = "group";
	public static final String MESSAGE_PEER_FROM = "peerFrom";
	public static final String MESSAGE_PEER_TO   = "peerTo";
	public static final String MESSAGE_PASSWORD  = "password";
	public static final String MESSAGE_ACTION    = "action";
	public static final String MESSAGE_CONTENT   = "content";
	public static final String MESSAGE_SUBJECT   = "subject";
	
	//Peer
	public static final String PEER_ID       = "id";
	public static final String PEER_EMAIL    = "email";
	public static final String PEER_NAME     = "name";
	public static final String PEER_PASSWORD = "password";
	public static final String PEER_USERNAME = "username";
	public static final String PEER_ACCOUNT_EXPIRED  = "accountExpired";
	public static final String PEER_ACCOUNT_LOCKED   = "accountLocked";
	public static final String PEER_PASSWORD_EXPIRED = "passwordExpired";
	public static final String PEER_ENABLED          = "enabled";
	
	//Document
	public static final String DOCUMENTS = "documents";
	public static final String DOCUMENT_ID = "id";
	public static final String DOCUMENT_PEER = "peer";
	public static final String DOCUMENT_PEER_NAME = "peerName";
	public static final String DOCUMENT_DATE_CREATED = "dateCreated";
	public static final String DOCUMENT_LAST_UPDATE = "lastUpdate";
	public static final String DOCUMENT_NAME = "name";
	public static final String DOCUMENT_CONTENT = "content";
	public static final String DOCUMENT_IS_POLLING = "isPolling";
	public static final String DOCUMENT_POLLING_DATE_TO = "pollingValidTo";
	public static final String DOCUMENT_NUMBER_OF_DOCUMENTS = "numberOfDocumentsInRequest";
	public static final String DOCUMENT_TOTAL_NUMBER_OF_DOCUMENTS ="totalNumberOfDocuments";
	public static final String DOCUMENT_OFFSET = "offset";
	public static final String DOCUMENT_TAGS = "tags";
	public static final String DOCUMENT_OPTIONS = "options";
	
	//Tag
	public static final String TAGS           = "tags";
	public static final String TAG_ID         = "id";
	public static final String TAG_NAME       = "name";
	public static final String TAG_FRECUENCY  = "frequency";
	
}
